package com.foreknow.elmboot.service.impl;

import com.foreknow.elmboot.mapper.CartMapper;
import com.foreknow.elmboot.po.Cart;
import com.foreknow.elmboot.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 最酷的桃儿wjc
 * * @date 2022/5/7
 */
@Service
public class CartServiceImpl implements CartService {
    @Autowired
    private CartMapper cartMapper;
    @Override
    public List<Cart> listCart(Cart cart) {
        return cartMapper.listCart(cart);
    }

    @Override
    public Integer saveCart(Cart cart) {
        return cartMapper.saveCart(cart);
    }

    @Override
    public Integer updateCart(Cart cart) {
        return cartMapper.updateCart(cart);
    }

    @Override
    public Integer removeCart(Cart cart) {
        return cartMapper.removeCart(cart);
    }
}
